package com.example.springboot.mapper;

import java.util.List;

import com.example.springboot.pojo.Role;
import com.example.springboot.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UserMapper {
	User queryUserByUsername(String username);

	List<Role> queryRolesByUid(Integer uid);

	List<User> query(@Param("username")String username,@Param("enabled") Integer enabled);

    User queryById(Integer id);

	int del(Integer id);

	int delUserRole(Integer id);
}
